const Base = require('./base')
const User = require('./User')
const House = require('./House')
class Order extends Base {
  get tableName() { return 'Order' }
  user () {
    return this.hasOne(User, 'id', 'userId')
  }
  house () {
    return this.hasOne(House, 'id', 'houseId')
  }
}

module.exports = Order